cmake_minimum_required(VERSION 3.16)
project(LearnOpenGL VERSION 1.0)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

#-Wconversion 
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin)

#设置库和头文件目录
set(COMMON_INC_DIR  ${CMAKE_CURRENT_SOURCE_DIR}/third_party/include)

if(WIN32)
    set(COMMON_LIB_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/lib/win)
elseif(APPLE)
    set(COMMON_LIB_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/lib/mac)
endif()


add_subdirectory(src)

